<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition template="/views/templates/main.xhtml">
	<ui:define name="body">
		<style>
.navigation .rf-tab-hdr-brd,.navigation .rf-tab {
	display: none;
}
.label {
    font-weight: bold;
}
</style>
		<h:form>
			<rich:panel>
				<f:facet name="header">
					<h:panelGroup>
						<h:outputText value="Agregar Resultado" />
					</h:panelGroup>
				</f:facet>
				<h:panelGrid columns="3">
					<h:outputText value="Categoria:" styleClass="label"/>
					<h:outputText value="#{eventManagement.eventTypeName}"/>
					<br />
					<h:outputText value="Nombre de la subcategoria:" styleClass="label" id="subcatname"/>
					<h:inputText value="#{eventManagement.eventInputName}">
						<f:validateLength minimum="3" maximum="50" />
					</h:inputText>
					<rich:message for="subcatname" />
					<h:outputText value="Id de la subcategoria:" styleClass="label" id="subcatid"/>
					<h:inputText value="#{eventManagement.eventId}">
						<f:validateLength minimum="3" maximum="20" />
					</h:inputText>
					<br />
					<rich:message for="subcatid" />
				</h:panelGrid>
			</rich:panel>
			<br />
			<h:commandButton id="confirmar" type="submit" value="confirmar" action="#{eventManagement.addEvent}" />
			<h:messages />
		</h:form>   
</ui:define>
</ui:composition>
</html>